package com.leyou.item.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.List;


@Table(name="tb_category")
@Data
public class Category{
    @Id
    @KeySql(useGeneratedKeys=true)
    private Integer id;
    private String name;
    private Integer level;
    private Boolean effective;
    private Integer pid;
    private List<Category> children;
}
